package com.study.config;

import brave.sampler.RateLimitingSampler;
import brave.sampler.Sampler;
import org.springframework.cloud.sleuth.sampler.ProbabilityBasedSampler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SamplerConfig {

    //限速采集
    //@Bean
    //public Sampler sampler(){
    //    return RateLimitingSampler.create(100);
    //}

    //概率采集
    //@Bean
    //public Sampler defaultSampler(){
    //    return ProbabilityBasedSampler.create(0.5f);
    //}

}
